public class Circle {
    private int r;
    private final double PI = 3.1415;

    public Circle(int r) {
        this.r = r;
    }

    public double s() {
        return PI * r * r;
    }

    public double c() {
        return 2 * PI * r;
    }

    public void say() {
        System.out.println("圆的半径是" + r + "，圆的面积是" + s() + "，圆的周长是" + c());
    }

    public void setR(int r) {
        this.r = r;
    }

    public int getR() {
        return r;
    }

    public static void main(String[] args) {
        Circle yuan1 = new Circle(5);
        yuan1.say();
    }
}
